<?php
use app\http\middleware\InstallMiddleware;
use think\facade\Route;
use think\facade\Config;
use think\Response;

/**
 * 建材市场后台 相关路由
 */
Route::group('building', function () {
    Route::post('getMaterialsCategoryList', 'v1.building.BuildingMaterials/getMaterialsCategoryList')->name('getMaterialsCategoryList');  //主材采购页面 - 获取分类列表
    Route::post('category_tree', 'v1.building.BuildingMaterials/category_tree')->name('category_tree');  //获取分类树
    Route::post('addMaterialsCategory', 'v1.building.BuildingMaterials/addMaterialsCategory')->name('addMaterialsCategory');  //添加建材分类
    Route::post('updateMaterialsCategory', 'v1.building.BuildingMaterials/updateMaterialsCategory')->name('updateMaterialsCategory');  //编辑建材分类
    Route::post('deleteMaterialsCategory', 'v1.building.BuildingMaterials/deleteMaterialsCategory')->name('deleteMaterialsCategory');  //建材分类管理列表 - 删除
    Route::post('enableMaterialsCategory', 'v1.building.BuildingMaterials/enableMaterialsCategory')->name('enableMaterialsCategory');  //建材分类管理列表 - 启用禁用


})->middleware([
    \app\http\middleware\admin\AdminAuthTokenMiddleware::class,
    \app\http\middleware\admin\AdminCkeckRoleMiddleware::class,
    \app\http\middleware\admin\AdminLogMiddleware::class
]);